package com.example.second.observer.classes;

import java.util.Observable;
import java.util.Observer;

/**
 * @ClassName: SystemSubject$
 * @Description: java类作用描述
 * @Author: xinya
 * @CreateDate: 2020/12/8$ 14:20$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public class SystemSubject extends Observable {

    @Override
    public void notifyObservers(Object arg) {
        setChanged();
        super.notifyObservers(arg);
    }

    public void notifyObserver(Observer observer, Object arg) {
        observer.update(this, arg);
    }
}
